<template>
  <div class="box" v-if="Object.keys(goodSizes).length !== 0">
    <table class="table-sizes">
      <tr v-for="(item, index) in goodSizes.sizes[0]">
        <td v-for="item1 in item">{{item1}}</td>
      </tr>
    </table>
    <table class="table-vender">
      <tr v-for="(item, index) in goodSizes.infos">
        <td>{{item.key}}</td>
        <td class="">{{item.value}}</td>
      </tr>
    </table>
    <div class="info-img" v-if="goodSizes.images.length !== 0">
      <img :src="goodSizes.images" alt="">
    </div>
  </div>
</template>

<script>
export default {
  props: {
    goodSizes: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>

<style scoped>
  table {
    padding: 8px;
  }

  .table-sizes td {
    width: 15vh;
    height: 30px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
  }

  .table-sizes td:first-child {
    text-align: left;
  }

  .table-vender td {
    width: 50px;
    height: 30px;
    border-top: 1px solid #f0f0f0;
  }

  .table-vender td:last-child {
    width: calc(100% - 66px);
   padding-left: 60px;
   white-space:initial;
   color: #ff8f96;
  }
</style>